package org.example.type;


import java.sql.PreparedStatement;
import java.sql.SQLException;

public class LongTypeHandler implements TypeHandler<Long> {

  public void setNonNullParameter(PreparedStatement ps, int i, Long parameter, JdbcType jdbcType){
    try {
      ps.setLong(i, parameter);
    } catch (SQLException e) {
      throw new RuntimeException(e);
    }
  }

  @Override
  public void setParameter(PreparedStatement ps, int i, Long parameter, JdbcType jdbcType) {

  }

}